from hardware.usb.usb_manager import USBManager

def test_find_devices(mocker):
    mock_device = mocker.Mock()
    mocker.patch('usb.core.find', return_value=[mock_device])
    
    manager = USBManager()
    devices = manager.find_devices(0x1234, 0x5678)
    
    assert len(devices) == 1
    assert devices[0] == mock_device